home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Examples / AppKit / Backspace / MySlider.m < prev    next >
Encoding:
Text File  |  1993-07-15  |  492 b   |  24 lines

  1. //  MySlider.m
  2. //
  3. //  a simple slider subclass that lets me save the sliders value after
  4. //  the mouse comes up.
  5. //
  6. //  You may freely copy, distribute, and reuse the code in this example.
  7. //  NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  8. //  fitness for any particular use.
  9.  
  10.  
  11. #import "MySlider.h"
  12. #import "Thinker.h"
  13.  
  14. @implementation MySlider
  15.  
  16. - mouseDown:(NXEvent *)theEvent
  17. {
  18.     [super mouseDown:theEvent];
  19.     [[self target] saveSliderValue];
  20.     return self;
  21. }
  22.  
  23. @end
  24.